﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NGO_Application
{
    class UtilityClass
    {
        public static string ReplaceSingleQuote(string strvalue)
        {
            return strvalue.Replace("'", "''");
        }

        public static string ReplaceQuote(string strvalue)
        {
            return strvalue.Replace("'", "\'");
        }

        public static string ReplaceNewlines(string blockOfText, string replaceWith)
        {
            return blockOfText.Replace("\r\n", replaceWith).Replace("\n", replaceWith).Replace("\r", replaceWith);
        }
    }
}
